package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

public class OrderProductsInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String resId;

	private String resName;

	private String resCategoryId;

	private String resCategoryName;

	private String resTypeId;

	private String resTypeName;

	private Date publishDate;

	private String keywords;

	private String price;
	
	private Integer productType;

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	public String getResCategoryId() {
		return resCategoryId;
	}

	public void setResCategoryId(String resCategoryId) {
		this.resCategoryId = resCategoryId;
	}

	public String getResCategoryName() {
		return resCategoryName;
	}

	public void setResCategoryName(String resCategoryName) {
		this.resCategoryName = resCategoryName;
	}

	public String getResTypeId() {
		return resTypeId;
	}

	public void setResTypeId(String resTypeId) {
		this.resTypeId = resTypeId;
	}

	public String getResTypeName() {
		return resTypeName;
	}

	public void setResTypeName(String resTypeName) {
		this.resTypeName = resTypeName;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public Integer getProductType() {
		return productType;
	}

	public void setProductType(Integer productType) {
		this.productType = productType;
	}

	public OrderProductsInfo() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((keywords == null) ? 0 : keywords.hashCode());
		result = prime * result + ((price == null) ? 0 : price.hashCode());
		result = prime * result + ((productType == null) ? 0 : productType.hashCode());
		result = prime * result + ((publishDate == null) ? 0 : publishDate.hashCode());
		result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
		result = prime * result + ((resCategoryName == null) ? 0 : resCategoryName.hashCode());
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((resName == null) ? 0 : resName.hashCode());
		result = prime * result + ((resTypeId == null) ? 0 : resTypeId.hashCode());
		result = prime * result + ((resTypeName == null) ? 0 : resTypeName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrderProductsInfo other = (OrderProductsInfo) obj;
		if (keywords == null) {
			if (other.keywords != null)
				return false;
		} else if (!keywords.equals(other.keywords))
			return false;
		if (price == null) {
			if (other.price != null)
				return false;
		} else if (!price.equals(other.price))
			return false;
		if (productType == null) {
			if (other.productType != null)
				return false;
		} else if (!productType.equals(other.productType))
			return false;
		if (publishDate == null) {
			if (other.publishDate != null)
				return false;
		} else if (!publishDate.equals(other.publishDate))
			return false;
		if (resCategoryId == null) {
			if (other.resCategoryId != null)
				return false;
		} else if (!resCategoryId.equals(other.resCategoryId))
			return false;
		if (resCategoryName == null) {
			if (other.resCategoryName != null)
				return false;
		} else if (!resCategoryName.equals(other.resCategoryName))
			return false;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals(other.resId))
			return false;
		if (resName == null) {
			if (other.resName != null)
				return false;
		} else if (!resName.equals(other.resName))
			return false;
		if (resTypeId == null) {
			if (other.resTypeId != null)
				return false;
		} else if (!resTypeId.equals(other.resTypeId))
			return false;
		if (resTypeName == null) {
			if (other.resTypeName != null)
				return false;
		} else if (!resTypeName.equals(other.resTypeName))
			return false;
		return true;
	}

	public OrderProductsInfo(String resId, String resName, String resCategoryId, String resCategoryName,
			String resTypeId, String resTypeName, Date publishDate, String keywords, String price,
			Integer productType) {
		super();
		this.resId = resId;
		this.resName = resName;
		this.resCategoryId = resCategoryId;
		this.resCategoryName = resCategoryName;
		this.resTypeId = resTypeId;
		this.resTypeName = resTypeName;
		this.publishDate = publishDate;
		this.keywords = keywords;
		this.price = price;
		this.productType = productType;
	}

	@Override
	public String toString() {
		return "OrderProductsInfo [resId=" + resId + ", resName=" + resName + ", resCategoryId=" + resCategoryId
				+ ", resCategoryName=" + resCategoryName + ", resTypeId=" + resTypeId + ", resTypeName=" + resTypeName
				+ ", publishDate=" + publishDate + ", keywords=" + keywords + ", price=" + price + ", productType="
				+ productType + "]";
	}

	
}